/*
 * @Author: your name
 * @Date: 2022-01-27 20:50:38
 * @LastEditTime: 2022-01-27 20:59:05
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \json-serveg:\桌面2\VueStudy\vue-ego\vue-ego\src\store\modules\loginModule.js
 */
export default{
    namespaced:true, // 开启命名空间
    state:{ //数据
        userinfo:{
            user:'',
            token:''
        }
    },
    mutations: { 
        //设置用户信息
        SETUSER(state,value){
            state.userinfo = value
        },
        //清空
        CLEARUSER(state){
            state.userinfo ={
                user:'',
                token:''
            }
        }
     },
    actions: {   },
    getters: {
       
    }

    
}
